package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Collect;
import cn.wolfcode.trip.base.domain.TravelCollect;
import cn.wolfcode.trip.base.mapper.CollectMapper;
import cn.wolfcode.trip.base.mapper.TravelCollectMapper;
import cn.wolfcode.trip.base.service.ICollectService;
import cn.wolfcode.trip.base.service.ITravelCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TravelCollectServiceImpl implements ITravelCollectService {
    @Autowired
    private TravelCollectMapper mapper;


    @Override
    public void insertCollect(TravelCollect collect) {
        mapper.deleteCollect(collect);
        mapper.insert(collect);
    }

    @Override
    public void deleteDaily(TravelCollect collect) {
        mapper.deleteCollect(collect);
    }


}
